package com.gc.server.entity;


import lombok.Setter;
import lombok.Getter;
import java.io.Serializable;
import java.util.Date;

import java.math.BigDecimal;
import java.util.List;

/**
 * 出差申请实体
 * 表名 apply
 *
 * @author hxf
 * @email 505860922@qq.com
 * @date ${datetime}
 */
@Setter
@Getter
public class ApplyEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    //
    private Long id;
        //创建时间
    private Date time;
        //起止时间
    Date[] times;
        //持续时间
    private BigDecimal hours;
        //创建人
    private Long userId;
        //审核人
    private Long adminId;
        //审核人姓名
    private String adminName;
        //出差事由
    private String info;
        //备注
    private String remark;
        //同行人Id
    private Long friendId;
        //同行人
    private String friendName;
        //状态
    private Integer status;

    private List<BusApplyEntity> items;
    
    public ApplyEntity(){

    }

    public ApplyEntity(Date time, Long userId, String info, Integer status) {
        this.time = time;
        this.userId = userId;
        this.info = info;
        this.status = status;
    }
}
